package com.zzjson.consumer;

import com.zzjson.domain.Merchant;
import org.springframework.amqp.rabbit.annotation.RabbitHandler;
import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Component;

/**
 * <p>****************************************************************************</p>
 * <p><b>Copyright © 2010-2019 shuncom team All Rights Reserved<b></p>
 * <ul style="margin:15px;">
 * <li>Description : com.zzjson.comsumer</li>
 * <li>Version     : 1.0.0</li>
 * <li>Creation    : 2019年04月28日</li>
 * <li>@author     : zzy0_0</li>
 * </ul>
 * <p>****************************************************************************</p>
 */
@Component
@RabbitListener(
		containerFactory = "rabbitListenerContainerFactory",
		queues = {"boot-third-queue"}
)
public class ThirdConsumer {

	@RabbitHandler
	public void process(Merchant message) {
		System.out.println("third Queue received msg : " + message);
	}
}